﻿namespace Moebius.Profiling
{
    public class ProfileIteration
    {
        private readonly int iterations;
        private readonly double runDuration;
        private readonly double averageTime;

        public ProfileIteration(int iterations, double runDuration)
        {
            this.iterations = iterations;
            this.runDuration = runDuration;
            averageTime = runDuration / iterations;
        }

        public int Iterations
        {
            get { return iterations; }
        }

        public double RunDuration
        {
            get { return runDuration; }
        }

        public double AverageCallTime
        {
            get { return averageTime; }
        }
    }
}